import React, { memo } from 'react'
import { NavLink, Outlet, useNavigate } from 'react-router-dom'

const Home = memo(() => {
    const navigate = useNavigate()
    return (
        <div className='home'>
            
            <NavLink to='/home/home1'>home1</NavLink>
            <NavLink to='/home/home2'>home2</NavLink>
            <p onClick={() => navigate('/mine')}> 跳转到我的页 </p>
            <Outlet></Outlet>
        </div>
    )
})

export default Home